package com.emep.changzhi.analyse.entity.equipment;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author yangj
 * @Description: 监测设备表
 * @date 2018/2/23  8:47
 * @version V1.0
 *
 */
@Data
@Entity
@Table(name = "sys_equipment_moniter")
public class EquipmentMoniter implements Serializable {

    private static final long serialVersionUID = 1374728936569469048L;

    @Id
    @GenericGenerator(name = "system-uuid" , strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String id;

    @Column(name = "mn",columnDefinition="varchar(100) COMMENT '设备mn号'" )
    private String mn;

    @Column(name = "monitor_type_id", columnDefinition="varchar(100) COMMENT '监测类型id'")
    private String monitorTyptId;

    @Column(name = "equipment_name",columnDefinition="varchar(100) COMMENT '设备名称'")
    private String equipmentName;

    @Column(name = "equipment_model",columnDefinition="varchar(100) COMMENT '设备型号'")
    private String equipmentModel;

    @Column(name = "port",columnDefinition="varchar(100) COMMENT 'IP地址'")
    private String port;

    @Column(name = "pwd",columnDefinition="varchar(100) COMMENT '设备密码'")
    private String pwd;

    @Column(name = "equipment_status",columnDefinition="varchar(100) COMMENT '设备状态'")
    private String equipmentStatus;

    @Column(name = "equipment_type",columnDefinition="varchar(100) COMMENT '设备类型'")
    private String equipmentType;

    @Column(name = "manufactor",columnDefinition="varchar(100) COMMENT '设备厂家'")
    private String manufactor;

    @Column(name = "sim",columnDefinition="varchar(100) COMMENT 'sim卡号'")
    private String sim;

    @Column(name = "emission_source_id",columnDefinition="varchar(100) COMMENT '所属监测类型'")
    private String emissionSourceId;

    @Column(name = "real_upload_frequency",columnDefinition="varchar(100) COMMENT '实时数据频率'")
    private String realUploadFrequency;

    @Column(name = "minute_upload_frequency",columnDefinition="varchar(100) COMMENT '分钟数据频率'")
    private String minuteUploadFrequency;

    @Column(name = "is_delete",columnDefinition="varchar(100) COMMENT '删除状态'")
    private String isDelete;

    @Column(name = "create_date",columnDefinition="varchar(100) COMMENT '创建时间'")
    @OrderBy("create_date DESC")
    private String createDate = String.valueOf(System.currentTimeMillis());

    @Column(name = "update_date",columnDefinition="varchar(100) COMMENT '修改时间'")
    private String updateDate;

}
